/* ==================================================================   
 * Created [2009-4-27 下午11:32:55] by Jon.King 
 * ==================================================================  
 * TSS 
 * ================================================================== 
 * mailTo:jinpujun@hotmail.com
 * Copyright (c) Jon.King, 2009-2012 
 * ================================================================== 
*/

package com.jinhe.tss.core.sso.identity;

import com.jinhe.tss.core.sso.IOperator;
import com.jinhe.tss.core.sso.IdentityTranslator;
import com.jinhe.tss.core.sso.IdentityTranslatorFactory;
import com.jinhe.tss.core.sso.identifier.DemoOperator;
 
public class MockIdentityTranslatorFactory extends IdentityTranslatorFactory {

    public static void init() {
        translator = new IdentityTranslator(){
                
                public IOperator translate(Long standardUserId) {
                    return new DemoOperator(standardUserId);
                }
    
                public IOperator translate(Long standardUserId, String targetAppCode) {
                    return new DemoOperator(standardUserId);
                }
    
                public void savePassword(Long userId, String password) {
    
                }
            };
    }

}
